<?php
    $title="负责人登录";
	require_once $_site->get_viewpath("wap/commom/header");
	if($user_data){
		?>
		<script language="JavaScript" type="text/javascript">
			window.location.href="/wap/xiaofei";
		</script>
		<?php
	}
?>
<style>
	div.aui_state_noTitle .aui_inner{
		 border:1px solid #efefef;
 background:-ms-linear-gradient(top,#f2f2f2 0,#FFF 100%);
			background:-moz-linear-gradient(top,#f2f2f2 0,#FFF 100%);
			background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#E5E5E5),color-stop(1,#C3C3C3));
			filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#efefef', endColorstr='#fffff',GradientType=0);

			border-radius:5px;
			height:40px; line-height:32px;
	}
	div.aui_state_focus .aui_content{
		color:#333333;
		font-size:18px;

	}
	table.aui_border{
		box-shadow:none;
	}
</style>
 <script type="text/javascript" src="/static/artDialog/jquery.artDialog.js?skin=green"></script>
<script type="text/javascript" charset="utf-8">	
function loginaction(){
	var account=$("#account").val();
	var passwd=$("#password").val();
	if(''==account||''==passwd){
		art.dialog({title:'消息',content:'请输入账号和密码',icon: 'error'}).lock().time(2);
		return;
	}

	$.post("/handle.php",$("#form1").serialize(),function(res){
        if(res.state==false){
    		art.dialog({title:'消息',content:res.msg,icon: 'error'}).lock().time(2);
    		return;        
        }
        art.dialog({title:'消息',content:res.msg,icon: 'succeed'}).lock().time(2);
	},'json');
}	
	
</script>
<body style=" background-color:#fff0db;">
	<div class="top">负责人登录</div>	
	<div class="login">
		<form method="post" action="/handle.php" id="form1" >
		<input name="h" value="admin/wap_login" type="hidden">
		<ul>
			<li><div class="text"><span class="col_1 icon_profile span_one"></span><div class="input_one col_2"><input type="text" id='account' name="account" value="" /></div></div></li>
			<li><div class="text"><span class="col_1 icon_lock span_two"></span><div class="input_one col_2"><input type="password" id='password'  name='password' value="" /></div></li>
			<li>
				<div class="input_two">
					<input type="button" onclick="loginaction();" value="登 录"/>
				</div>
			</li>
		</ul>
		</form>
	</div>		
</body>
</html>
